

import upperFirst from 'lodash/upperFirst'
import camelCase from 'lodash/camelCase'

const path = require('path')


let Components = {}
const requireComponent = require.context('./', false, /[a-zA-Z]*\.vue$/)

requireComponent.keys().forEach(fileName => {
	const componentName = upperFirst(camelCase(fileName.replace(/^\.\/_/, '').replace(/\.\w+$/, '')))
	Components[componentName] = ()=> import(`${fileName}`)

})
export default Components